package validation.jexp;

public class Feed {
    private long id = 0;
    private String name;
    private String siteUrl;
    private String feedUrl;
    private FeedType feedType;
    private boolean customCheckIntervalEnabled = false;
    private Integer checkInterval;

    public Feed() {}

    public Feed(String name, String siteUrl, String feedUrl, FeedType feedType) {
        this.name = name;
        this.siteUrl = siteUrl;
        this.feedUrl = feedUrl;
        this.feedType = feedType;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSiteUrl() {
        return siteUrl;
    }

    public void setSiteUrl(String siteUrl) {
        this.siteUrl = siteUrl;
    }

    public String getFeedUrl() {
        return feedUrl;
    }

    public void setFeedUrl(String feedUrl) {
        this.feedUrl = feedUrl;
    }

    public FeedType getFeedType() {
        return feedType;
    }

    public void setFeedType(FeedType feedType) {
        this.feedType = feedType;
    }

    public boolean isCustomCheckIntervalEnabled() {
        return customCheckIntervalEnabled;
    }

    public void setCustomCheckIntervalEnabled(boolean customCheckIntervalEnabled) {
        this.customCheckIntervalEnabled = customCheckIntervalEnabled;
    }

    public Integer getCheckInterval() {
        return checkInterval;
    }

    public void setCheckInterval(Integer checkInterval) {
        this.checkInterval = checkInterval;
    }

    @Override
    public String toString() {
        return name;
    }
}
